Created window by adding subroutine call