update blog with delete function