added ellipsis functionality