added routes to api
fixed filter bug