Added add window

Added add window functionality