adding filter to application_controller after init of rails