removed console, listen to succes event