made delete less stupid and started work on restful edit