FAIMS-38 - add ability to merge records and refactor haml and css to make it cleaner