refactored scroll buttons in spectrum viewer