fix order of operations in construct
fixed container modification event listener