improvements to view life cycle