Role of Buddhist wat towards society in Thailand during Sukhothai to early ratanakosin (1238-1910 A.D)