Add function buildUrl(); Rewrite renameUrl()