resolved problem with action listener removing