Updates borders