margin and rootViewController can be set after init