Completed basic GUI and data handling