working on css and javascript event