changed the controller so that it generates data, not the whole html