fix create deploy menu item logic
remove useless code