close popup on keypress
separated js and css and lots of little changes