Change get method to post method