add delete function to posts