add homepage and change mainlayout