added fitBounds function