Update controlListener.java

updating control listener with new logic