Rewrite javascript function to support state refresh after transition done
Add variable for action trigger so it can update working item
Remove strict warning as it caused Ajax calling failure.
Reload state after transition complete.