Preselect active layer for normalization

When the user opens the dialog to perform data transformation, in case one of the layers is active, such layer will be pre-selected in the combobox.
This pull request also rearranges some code, fixing the fact that some of the logic belonging to the data transformation dialog was handled outside the dialog itself.