Made separate actions for post and get