update structure with views