Only add child if childcount is zero

Avoids adding quicksettings to notifications panel or visceversa
Remove unused variables and restore cancel trigger