Fixed problems with FileChooser and layout execution