add app route and states to controller