added listener for map loaded in init funciton