Added functionality to cancel appointments from schedule view.