fix url function to save/delete