extended focusmaster to toggle between master and a slave