css
added css and error checking