some crossbrowser little changes and fixes