Allow programmatic switching of viewcontroller