add loading indicator before search view is shown, update homework submission