changed add function to take any component for third option