working on adding auto view loading for the index