clean up.
Convert RootViewController to Swift.