Refactor plugin instal action
Refactor plugin install action