appointment detail will either prompt to search or show details