change links and modify security