Change before_action to before_filter