minor code cleanup
added ui obj