add 404 when device record not found