adding google maps api and removing unecessary receivedEventfunction