add methods to appointment controller