Add query to get list function
add list output to main display