changed method to choose what panel display