added popup window code