Adapted the principal fragments to the backstack cycle. Some still need to be treated.