Updated code in FormMain and Recorder to make UI render more consistently when state changes