updates border and line width