Added initMain to clean up code.  Fixed bug with map not refreshing when returning from details.  Fixed bug where info window stayed open when returning from details, even if the window wasn't the same place as the details.