adding filters to the rest controller