success and error callbacks for even drag and event resize