Added tabs and extra functionality to the gui