add support for multi window
Merge pull request #1 from max918/master

add support for multi window