reworking on css
fixing the javascript issue