change window open/close to a redirect when table is paid