correct code before_filter only used in controller