fix some htm erros plus custom pages widget enabled