added cpu scrollbar and refactored some of its code