added examples to index and handling min-height of scrollbar