Added override method to close the drawer when setting the root view controller.