Moved button code to a new file.