added json view for appointments