returning single document in case of ID in url