udpated before_actions