update context border