Fixing crashes, starting to rework the line detail screen.