replace before_filer by before_action