updated application controller and routes