rewriting pages

[x] Repurposed the pages
[x] Detects the current DE instead of asking