Made the admin navigation panels edit link's logic a bit better