Make the popup window 'dependent' and close #29