Import display result bugfixes for directive imports

This fixes the display of the import section controls on initialfile upload and preview. Other stability changes included as well.