added redirect-to-ui endpoint