post and get methods working, put method halfway done