redirect to index if no id found