adding window when click on advanced