Add main.css submodule, update design and refactor JS