put and post request half working, not using data yet