Added check to remove form attachment button and add media icon to attachments buttons