button returns logs data to console, but maybe only one time.