apply some before filter for controller