Refactor left panel and source ui