switched register to use a confirm dialog rather than a toast