LOTS of restructure of code.
Moved almost all code from main to PanicController.
Moved lots of code from the midView to the midController.
Created seperate classes for the actions, much better for readability.