fixing a few cross browser issues