Lifecycle methods!!

Added life cycle methods!