updating border colour