remove unneeded toolbar code