Show the constraints on selected machine tokens

When constraints are set to hidden the selected token should still have visible constraints.
I'm not really a fan of declaring vars inside of a loop like this. Can the declaration be moved out and then the assignment take place here.