Reinitialize layout