User can only enter numbers or valid elements in eqn balancer

Also updated xml layout to avoid repetition.