added delegate and did select stuff for the collection view