added cardlayout and logic for switching cards for the pokemetrics panel