[ui] add minimize button

* Closes #377