add view toggle

clicking the arrow beside view header minimizes/maximizes it.
bound with menu click, so if minimized, it will be maximized.