regenerating index with new layout