change the way of removing locomote player from dom