tidy up css and graph scaling