modified app.py to accomodate basic url shortener functionality