update record.haml layout