learned about lifeCycle events