Switching over from one input to another one