added edit link for logged in users