removed all the dead code related to enableModelListener.