before adding the next view controller