added additional functionality to gui