modifications for popup window