Code Cleanup and No clicks on form

Also change color of form depending on what mode we are in.