update beforeMove and afterMove callback arguments