Add before_filter for set_project