add component modal working