Added a 'replace' button which will switch with 'add'.