Change vue for search by key and remove uncessary code