add index js and modify _layout