change player from view into a component
clean up