added lifecycle methods which were not specifically used in order to see the lifecycle