Added shorten url method to model, formatted first page