Removed whitespace in the body of some functions in ui.js