Added top-bottom panel.

Added top-bottom panel.
Removed repeated panel code.