improve view recreation code

Authored by mvourlakos on Thu, Jun 20, 8:21 AM.