Update data, fix formatting and event handlers.