Ui refactoring to improve mobile support.
grunt build