Fix bugs and some improvements

* Fix right margin bug
* Added scrolling for deeper then to bottom in plain mode