updated addcollection logic and UI