move filter call to main.js