add loading to the index ctrl