Extract ActionListener for links in a separate class