update position after moving object programmatically