updated controller for read urlEncoded payload parameter