Refactor the new-request dialog so that it uses the common dialog context.