implement moveToFront.