check root at activity level instead of each fragment