changes for firefox and safari