update border on focus