clear model when disposing element