getActivity method added to index