added before filter on app controller