CODE: moved preferences to stage file and made a stage property
FIX: on dispose, also dispose of child elements and remove signals