expand and collapse view entries