fixed a namespace problem in function generateToolbar()