Update beforeFilter()