Folder cleanup, ajax and session for dynamic cards