changed responsibility of this class to be a jframe which holds a card
panel