renaming before_filter to before_action in PagesController