implemented url shortening