refactor customer list into a controller