Refactored much of the code for the UI. Also removed unndecessary UI elements from the .ui file.