Fixed bug with scroll panes (one improvement)

- Need add a auto-scroll on add;
- A little bit of refactoring.