Revert StackPanel changes