add actvitiy life cycle method