add toolbar function and canvas and static function learn