Cleaned up code in MidDay and view controllers.