add layout and modify index use layou