updates views with setElement