convert map view to singleton class