Updated browser window code