Added methods for hooking to UI