intial implementation of segments view