Completed gui design, adding functionality