changes maid on search and publish new refactor