Set the correct parent_file to highlight the correct top level menu

This is a fix for issue #1909 and added a missing i

Is this the correct branch or should i use 3.0-unstable?

Added fix for #538 Components don't "hold their place" in the menu