Completed week 7 refactoring

refactored everything into functions/classes. Program could use some
more refactoring for efficiency (such as seperate button handlers for
different tabs or each type of button). Program complete to course
specifications