Fixed problem with appointments view causing app to become unresponsive