should return to the app correctly on success