fix a crash on windows when deleting widgets
finished security page serialization