Added funtional window