making the whatIf page dynamic