Preferences and Menu implemented