removed bug where browser listener was being added repeatedly