Made three windows functional: TODO: Debug application exiting when destroying only one window.