Various bugfixes

Limit file dialog to xml files
Clear widget lists when loading a new layout
Add lines to layouts