complete code of indexViewController
update appointment view controllers