add delete thot functionality to edit page