fixed issue #771, formatted ui utils