reconfigure layout