Refactor about top and bottom panel.