Added reset functionality to gui