fixed bug with multiple click events on f3 and f4 buttons