add home popup function