how to combine two angular controllers