update script and fix css