Updated another bug that caused an Attribute error that was no longer being taking care of, so put an extra 'except' to handle that.
Added inheritance to remove a lot of unnecessary variables. Also included the callbacks in the class with the buttons to make it more readable and easier to edit, without changing the whole thing. Callbacks class was removed because fo this.