fix(TitleBar): use the correct execution context when creating views