event listeners fix for firefox