added updateToolbar method