new function to render page in local window