delete and link buttons for shapes, some cleanup for sidebar