Added new methods and made the GUI run smoothly