Fix the logic for hiding and showing the `.record` <div>s.