to implement the function of deleting comment(frontend)