changed routes to post