Combine two controllers into one, bad design perhaps to save pains of Angular