promise refactoring, css updates, comments