activity lifecycle is added.