rewrite php method
refactor javascript method
refactor security config