adding new filters.js file and adding API call handlers