Change public to private functions in UI.