updating border styles and topper mask