completes mainview methods layout and creation