Replacing challenge selection dialog with a react component