Fixes issues with exceptions when clicking a card

Changes so that each cards action listener is set when a requirement is selected and not when the tab is first created.