change component to view