cleaned up the root controller