added monitor switching