fixing appointments views