Add before and after controller actions