Added controlbar code