finish the main framework of overall view