fix #7824 cleaning up maps in PopupViewRegistration when views are detached - closes memory leak
PopupViewRegistration to manage view popupview and target field - fixing problems
introducing PopupViewRegistration to manage view popupview and target field