Obtain window id on completion