trying to make the movement function filter buttons work