question function for client view + search feature + refactoring client view