adjusted styles,html,js for  cross browser support