Add top and bottom rules