add before_filter to projects controller