changed get methods to post methods