Added a prefs for outline visibility (fixed #1680)

- Added a prefs for outline visibility (fixed #1680) (keep it hidden once it's been hidden)
- Fixed outline visual layout

review: @umop