adding to applications_controller, fixing customer_controller