improved display of interactive lists, added --max-results option