added commandlistener