redesign the main frame