Prepared the code for implementing the GUI