display proper messages for empty list