Converted palette into a toolbar tool.