refactored view-logic into Formatter class. moved clipboard button to the top right corner.