added teplate and filled title and first pages