refactoring mpc web functions in mpc web class