Add progress indicator and error UI
Update status text in window.title
Minor cleanups
Minor refactoring