updates routes in views