replaced before_filter method references with rails4 convention before_action