add main panel