Dispose existing form models
Fixed compiler hints