Page Loading slow and gives appointments errors

My appointments page is loading really slow. Sometimes it gives appointments errors. Can you look at my short code to make sure it is ok?

When I updated to app 2.0 it none of my appointments worked.

I have granted access. Please let me know if you see anything funny.

thanks,

matt