add the main frame