added routing. modified model usage and post call.