connect to the updated page
remove non functional script
improved with debug on/off
minor update