Auto borders update