ActionListener function not being called