Making the page returned to on cancel configurable