added before_filter for cat controller