added client and added appointments function