change the application to be RESTFul