Rearrange layout and add support for fraction lines and subtraction with same horizontal line symbol.