Added basic window functionality