Close button fix for Firefox