refactor gmaps initialize