Search function working added lastSeen and location