Can I have my window automatically close after a submission