max stack size can now be dynmaically adjusted

Wanted to make the max stack size forp-ui can hold is easily adjustable.