Added event listener method
Added add window base