Refactored into base compontent
Refactored components

Reafactored into 1 base component linked to react and three child
components.