posting method of the controller working