changed Content-Type of post queries to application/json