adding preferences to app