fix view detail  in admin and index page