Refactor tools view.