completed documentation for index action