Change beforeAction for beforeFilter