writePageTitle and write widgets indentation fixes