Edited the sample to be added into the body section within each other element double click function.