Add edit/preview buttons where appropriate.