tracking route errors for details:id and displaying message