adding event handlers for all buttons and static getter methods to be used by ShapesPanel event handlers
changing static methods in Shapes to support undo and clear buttons