window open is semi-functional