Some more UI machinery to make switching between different mesh views easier.