Updated the control pannel to allow changing modes