added to cards and fixed scroll bug