Add prefs class
fix project prop and refactor layout