properly clear sources when navigating

The debugger sources now properly clear when navigating to different pages.