update, add popup overlay logic