<span class="mitem">
    <span class="msub" ng-click="setThings()">Things</span>
</span>

<span class="mitem">
    <span class="msub" ng-click="setGallery()">Gallery<spanext ng-if="state.page == 'gallery'"> ></spanext></span>
    <span ng-if="state.page == 'gallery'" class="msub" ng-click="setUpload()">Upload</span>
    <span ng-if="state.page == 'gallery'" class="msub" ng-click="clearGallery()">Clear</span>
</span>