added some fixes for browsers