updated UIUtil class