How to enable and disable layout at run time in uipath app

I want to enable or disable layout in uipath app at run time based on butten selection.No need to go wtih different page.