Update component lifecycle to remove memory leak issue.