workaround for IE bug where it handles click button event twice