Preparing scroll bar, settings and commands