finished implementing backend for find and replace