Sidebar toggle - moving composer.TabBar

Hi,

I’m trying to add Sidebar. Basically onclick a button sidebar appear and disappear.  I can move screengroup but I can’t move  the tabbar.    I tried something like this  from different tab page - composer.tabBar.left=display.contentWidth

ocal toggle = display.newRect(0,0, 40, 100) toggle:setFillColor(0, 0, 0) toggle.x = 40 toggle.y = 0 toggle:toFront( ) toggle.isVisible=true sceneGroup:insert(toggle) local sideBar=false function sideBarTouch(event) if(event.phase == 'ended')then if sideBar==false then transition.to(sceneGroup,{time=200, x=display.contentWidth-50,transition=easing.outExpo}) composer.tabBar.left=display.contentWidth sideBar=true else transition.to(sceneGroup,{time=200, x=display.screenOriginX,transition=easing.inExpo}) sideBar=false end end return true end toggle:addEventListener("touch", sideBarTouch)