convert ui_elements indentation to tabs, minor tidy