moved styles to css and some modifications