implemented more functions of appointments, ready to merge (users still need some work)