remove flask functions from links