Trying to add preferences as dialogue box, but the app wont run #26