Working main, index, new pages.

Bug when saving slug and type - not saved and disabled.