Added function definitions to uiController