moved buttons to it's own .js

all filter criteria included