added functions to add and remove borders on widgets