construction of logic
add bg and popup