edited foldActionListener