changing request type from GET to POST