adding files before switching to one activity many fragments