Implemented check box in GUI for mode selection.