-New functions for the UI class