incorporates origin variable
sets click listeners, adds face component type as attribute