cannot get detail veiw working