Format pages and Add preview