finished user controls for matrix and vector input