added tabs and table of contents. There is a bug for elems hidden in tabs