added invoke action when a life-cycle is attahced