clean up codes for backward compatibility
fix #24: Toolbar customization is disabled after changing the toolbar placement