Move results listing code to setContent

This allows for listing results when a search in given on the command
line.