Hi Sudhakar,
You can store the booleans in a nonpersistable helper object and use conditional visibility to achieve this.
Some links:
https://docs.mendix.com/refguide/common-widget-properties/#visibility-properties
https://docs.mendix.com/refguide/persistability/