viewDetail bug fixed