added toggle algorithm toolbar button