update dynamic border change