Refactored HALSMSWindowViewController

General refactor and code cleanup of HALSMSWindowViewController.