mimic rootViewController usual lifecycle