Added comments for ui_disable and ui_enable functions