not working appointment index