added cardLayout panels for the buttons