Welsh to update building codes