Moved creating buttons and msgboxes into own funcs