Add click event of directory item