taking info from index view and passing it to map view