added javascript to show and hide filter