adds list function to server controller