add snippet pragma mark view life cycle