IDisposable implementation. Some UI improvements