fixed various browser specific bugs