fixed: manage link not showing up
fixed some php notices
fixed sorting
fixed: promote first child when deleting pages