use Action as cgi to handle all request and dispatch