Fixes some unfinished code in view statechart, specifically for handling view hiding during showing transitions.