updated PubsFlask to remove hard coding of URLs