refactored. add main gui scroll bar like typeDisplay.