updating map view to reuse of layer views
removed global variable
fixed race condition in wizards