refactor the pig code:simplify the tooltip, pig helper and keywords autocompletion!