layout css change and index change