Add popup to add layers and test validity. Solve part of the open dialog with Firefox.