Fix style and add browser compability