adds ajax calls to update the space list on the space index page