fixed delete button hide and made form clear after submission