fix controllers to work with before filter