selected border working