refactor graph toolbar css and html to make it simpler