add before_action to set project id on controller actions