major overhaul of the cms feature

i am slowly going crazy.
might have to undo this commit