update border box selected