Added edit link for logged-in user