elements: Make sure the keyframes are displayed above the lines
mainwindow: Use existing field instead of passing it as a parameter