fixed routing and scrolling bugs