Adding more functionality to google maps demo