rename list_all view to index, add mock middleware routines