delete single doc func working. edit isnt filling in form fields yet though.