update buttons for comment and attachments