added routing functionality to carto view