clicking an even redirects to editing page