added null checker to valueChange listener, NPE encountered