blog update and delete function