added code to hide edit button if the user cannot edit the comment