refine command pattern for displaying panels