add switch formBlock in pages