added dynamic resize based on display resolution, not yet perfect
added escaping of querystring