removed mediatype variable
added additional window properties