Arranged code so user can see info window for marker before being taken to directions by clicking the info window