right before adding buttons for modes