Error with previous code. This is the working UI that accepts string