bug fixes, auto-create id on pages