search links now work but permission currently not worked