Added restore states to all fragments.