I want to put the dashed line to the flow chart I have drawn using tikz. The current working looks like as follows:
\documentclass{article}
\usepackage{tikz-cd,tikz}
\usetikzlibrary{arrows, matrix, positioning, shapes, arrows, decorations.pathreplacing}
\usetikzlibrary{shapes.geometric, arrows, calc, intersections}
\begin{document}
\tikzstyle{decision} = [diamond, draw, fill=blue!20,
text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=green!10,
text width=25em, text centered, rounded corners, minimum height=4em]
\tikzstyle{block2} = [rectangle, draw, fill=lime!35,
text width=12em, text centered, rounded corners, minimum height=3em]
\tikzstyle{block3} = [rectangle, draw, fill=black!10!green,
text width=12em, text centered, rounded corners, minimum height=3em]
\tikzstyle{block4} = [rectangle, draw, fill=black!10!green,
text width=8em, text centered, rounded corners, minimum height=4em]
\tikzstyle{block5} = [rectangle, draw, fill=black!10!green,
text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{block6} = [rectangle, draw, fill=black!10!green,
text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{block7} = [rectangle, draw, fill=black!10!green,
text width=13em, text centered, rounded corners, minimum height=4em]
\tikzstyle{block8} = [rectangle, draw, fill=black!10!green,
text width=6em, text centered, ellipse, minimum height=4em]
\tikzstyle{block9} = [rectangle, draw, fill=teal!60,
text width=15em, text centered, rounded corners, minimum height=4em]
\tikzstyle{block10} = [rectangle, draw, fill=cyan!60,
text width=10em, text centered, rounded corners, minimum height=4em]
\tikzstyle{block11} = [rectangle, draw, fill=white!60,
text width=10em, text centered, rounded corners, minimum height=4em]
\tikzstyle{block12} = [rectangle, draw, fill=cyan!60,
text width=15em, text centered, rounded corners, minimum height=3em]
\tikzstyle{block13} = [rectangle, draw, fill=cyan!30,
text width=20em, text centered, rounded corners, minimum height=3em]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=2cm,
minimum height=4em]
\vspace{1cm}
\begin{figure}[!h]
\centering
\begin{tikzpicture}[node distance = 2cm, auto]
% Place nodes
\node [block] (title) {\textbf{JORDAN-CHEVALLEY DECOMPOSITION FOR\\ EEG SIGNALS DURING EPILEPTIC SEIZURES}};
\node [block2, below of=title, node distance=2.3cm] (chap1) {\textbf{Chapter 1}\\ Introduction};
\node [block3, below of=chap1, node distance=2.3cm] (chap2) {\textbf{Chapter 2}\\ Epileptic seizure};
\node [block4, below of=chap2, node distance=2.3cm] (patient) {Patient and EEG signals recording};
\node [block5, left of=patient, node distance=4cm] (fttm) {FTTM};
\node [block6, right of=patient, node distance=4cm](flateeg) {Flat EEG};
\node [block7, below of=patient, node distance=2.5cm](KR) {Krohn-Rhodes decomposition of EEG signals};
\node [block8, below of=KR, node distance=2.5cm](JC) {Jordan-Chevalley decomposition};
\node[block8, left of=JC, node distance=5cm](matrix) {Matrix partial order};
\node[block8, right of=JC, node distance=5cm](prime) {Additive of prime number theory};
\node[block9, below of=JC, node distance=2.8cm](chap3) {\textbf{Chapter 3}\\ Ordering of matrices by precede operator};
\node [block9, below of=fttm, node distance =10cm](partial) {\textbf{Chapter 4}\\ Jordan-Chevalley decomposition of elementary EEG signals};
\node [block9, below of=flateeg, node distance=10cm](chap5) {\textbf{Chapter 5}\\ Pseudo-Goldbach Theorem};
\node[block12, below of=chap3, node distance=4.5cm](chap6) {\textbf{Chapter 6}\\ Implementation};
\node[block13, below of=chap6, node distance=2.3cm](chap7) {\textbf{Chapter 7}\\ Conclusion and Recommendation};
Draw edges
\path [line] (title) -- (chap1);
\path [line] (chap1) -- (chap2);
\path [line] (chap2) -- (patient);
\path [line] (patient) -- (fttm);
\path [line] (patient) -- (flateeg);
\path [line] (fttm) |- (KR);
\path [line] (flateeg) |- (KR);
\path [line] (KR) -- (JC);
\path [line] (JC) -- (matrix);
\path [line] (JC) -- (prime);
\path [line] (JC) -- (chap3);
\path [line] (chap3) -| (partial);
\path [line] (chap3) -| (chap5);
\path [line] (partial) -- (chap5);
\path [line] (chap3) -- (chap6);
\path [line] (chap6) -- (chap7);
\end{tikzpicture}
\caption{Research framework}
\label{fig:overview}
\end{figure}
\end{document}
that produces:
I want to put the dashed line and caption on this figure that looks like:
Please help.




