Made both fragments work with the content provider.