add before filter to controllers