added callback function for edit event
pixel pushing