completed customer controller

added search and conditional searching