add title and directory to learning state