add a delete listener and a pretty url