added 'exitTo' functionality to webpage API