Search and layout for index