fix(views): move function and menu items out of file typecloud view

fixes #7397

(rebased version of #7424)