Added functionality to appointments controller, up to delete