Fixes build error and adds view controller to rootViewController