buttons for diagrams