Extracted new gui function - messageBox
Removed unnecessary comments