Add loading spinner and finish last round of bugfixing.