Added some functions to the UI.