How to open and close windows tabs