fix some js and css issues