fix controllers to work with before_filter