retrieving posts and displaying pins on map