Bugfixes for cross-browser compatibility and css fine tuning