changed select shape method to change whcih button is enabled based on
the mode the shape is in