finished the add and remove methods of the gui