changes for firefox support