revert layout mode and add scale