add toggle within encry xml