make react button work