Making create and update in catalogue ajax type & code deduplication in catalogue & not searching throught phones that doesnt exist in catalogue in ES