updated before_filters to before_actions as recommended for rails 4