change to stream
added ajax for the rec table