changing border color and div background color to match the opening div