Fixed issue updating appointments
Refactored appointment views