created method to scope appointments by client, adjusted controller to use this method if the client params is present. No tests yet.