Added multiple window support and buttons

- Mulitple windows work on there own
- Buttons on multiple windows get recognized