fixed bugs in js and css