Added new gui function