css cleanup, fix bug with writing head