converted add run modal form to a react component