Just a comment
ui.js indentation
Move layout functions to ui.js