main panel adopted to new layout