Adds method to replace contentViewController and dismiss sideBar at the same time.