fixing problems replacing border css styles