added list function to users controller