separated get and post controllers