redo add logic for cards and projects