Add view detail functionality