fixing border clicking between different ones